package com.ysd.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ysd.dao.IAdminDao;
import com.ysd.model.Admin;

@Service
@Transactional
public class AdminService implements IAdminService {
	
	@Resource
	private IAdminDao adminDao;

	public Admin login(Admin a) {
		return adminDao.login(a);
	}

	public int addAdmin(Admin a) {
		return adminDao.addAdmin(a);
	}

}
